package com.elinkway.infinitemovies.http.parser;


import com.elinkway.infinitemovies.bean.IsFavoriteBean;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * Created by xiaojian on 16-3-16.
 */
public class IsFavoriteParser extends LVideoMobileParser<IsFavoriteBean> {
    private String arr;

    @Override
    public IsFavoriteBean parse(JSONObject data) throws Exception {
        IsFavoriteBean mIsFavoriteBean = new IsFavoriteBean();
        mIsFavoriteBean.setCode(super.getCode());
        mIsFavoriteBean.setMsg(super.getMsg());
        mIsFavoriteBean.setData(arr);
        return mIsFavoriteBean;
    }

    @Override
    protected JSONObject getData(String data) throws JSONException {
        // TODO Auto-generated method stub
        arr = data;
        data = "{\"data\":\"data\"}";
        return super.getData(data);
    }
}